/**
 Copyright will be fixed soon.
 Author: Hiroshi Ota.
 $Date: $
 $Revision: $
*/

#ifndef _BF_PATH_RECOGNIZER_H_
#define _BF_PATH_RECOGNIZER_H_

#include "IBFArgorithm.h"
//#include "IBFBehaviorControl.h"

class IBFBehaviorControl;

class BFPathRecognizer :
	public IBFArgorithm
{
public:
	BFPathRecognizer(IBFBehaviorControl* bc);
	~BFPathRecognizer(void);

	// get sense level from light sensor
	// and update the value in the state
	// return got value
	unsigned int updateLightSensorValue(BFState* state);
	

	// default implementation of IBFArgorithm::execute()
	int execute(unsigned int loopTick, BFState* state) {
		updateLightSensorValue(state);
		return 0;
	}

protected:
	IBFBehaviorControl* context;
};

#endif // _BF_PATH_RECOGNIZER_H_
